package com.gdut;

import java.util.ArrayList;

public class demo11 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("1");
        list.add("2");
        String s = list.get(1);
        list.set(1, "3");
        list.removeFirst();
        Object clone = list.clone();
        System.out.println(clone);
        System.out.println(list);
        System.out.println(s);
        ArrayList<Integer> list1 = new ArrayList<>();
        list1.add(1);
        System.out.println(list1.getFirst());
        System.out.println(list1);
    }
}
